package com.tm.gulimall.member.nacosconsumer;

import com.tm.common.utils.R;
import com.tm.gulimall.member.feign.CouponFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("nacos/member")
public class NacosConfigController {

    @Autowired
    CouponFeignService couponFeignService;

    @RequestMapping("/config")
    public R memberFeign(){
        R r = couponFeignService.nacosCofig();
        return R.ok().put("coupon",r.get("couponEntity"));
    }
}
